projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb441f4
)
entry: ensure valid GdkWindow before set_invisible_cursor()
author
Christian Hergert
<christian@hergert.me>
Wed, 18 Nov 2015 22:41:29 +0000
(14:41 -0800)
committer
Christian Hergert
<christian@hergert.me>
Wed, 18 Nov 2015 22:41:29 +0000
(14:41 -0800)
If the window has not yet been created, then we can't set the invisible
cursor yet. This can happen in situations where the widget is in a
revealer with type-to-search functionality.
gtk/gtkentry.c
patch
|
blob
|
history
diff --git
a/gtk/gtkentry.c
b/gtk/gtkentry.c
index 91ac223c59d318f19b83e60e2a4f74bf6fb6a04f..2ac7964c9a4d330d959888f6d5ca7858652ef14f 100644
(file)
--- a/
gtk/gtkentry.c
+++ b/
gtk/gtkentry.c
@@
-4853,9
+4853,11
@@
gtk_entry_obscure_mouse_cursor (GtkEntry *entry)
if (priv->mouse_cursor_obscured)
return;
- set_invisible_cursor (priv->text_area);
-
- priv->mouse_cursor_obscured = TRUE;
+ if (priv->text_area)
+ {
+ set_invisible_cursor (priv->text_area);
+ priv->mouse_cursor_obscured = TRUE;
+ }
}
static gint